import { RouteRecordRaw } from 'vue-router'
export const constantRoute: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'layout',
    meta: {
      title: '测试',
    },
    redirect: 'home',
    component: () => import('@/views/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: '首页',
        meta: {
          title: '首页',
        },
        component: () => import('@/views/home/index.vue'),
      },
      {
        path: '/user',
        name: '用户管理',
        meta: {
          title: '用户管理',
        },
        component: () => import('@/views/systemAdmin/user/index.vue'),
      },
      {
        path: '/department',
        name: '部门管理',
        meta: {
          title: '部门管理',
        },
        component: () => import('@/views/systemAdmin/department/index.vue'),
      },
      {
        path: '/dictionary',
        name: '字典管理',
        meta: {
          title: '字典管理',
        },
        component: () => import('@/views/systemAdmin/dictionary/index.vue'),
      },
      {
        path: '/menu',
        name: '菜单管理',
        meta: {
          title: '菜单管理',
        },
        component: () => import('@/views/systemAdmin/menu/index.vue'),
      },
      {
        path: '/role',
        name: '角色管理',
        meta: {
          title: '角色管理',
        },
        component: () => import('@/views/home/index.vue'),
      },
      {
        path: '/about',
        name: '关于我们',
        meta: {
          title: '关于我们',
        },
        component: () => import('@/views/about/index.vue'),
      },
    ],
  },
  {
    path: '/login',
    name: '登录',
    meta: {
      title: '登录',
    },
    component: () => import('@/views/login/index.vue'),
  },
]
export const asyncRoute: RouteRecordRaw[] = []
export const anyRoute: RouteRecordRaw[] = []
